﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpHW02
{
    internal class DataType
    {
        static void PrintDataType(string type, int size, object min, object max)
        {
            Console.WriteLine("{0,-10} {1,-15} {2,-30} {3,-30}", type, size, min, max);
        }

        static void Main(String[] args)
        {
            Console.WriteLine("{0,-10} {1,-15} {2,-30} {3,-30}", "Type", "Size", "Min", "Max");
            Console.WriteLine(new string('-', 85));


            PrintDataType("sbyte", sizeof(sbyte), sbyte.MinValue, sbyte.MaxValue);
            PrintDataType("byte", sizeof(byte), byte.MinValue, byte.MaxValue);
            PrintDataType("short", sizeof(short), short.MinValue, short.MaxValue);
            PrintDataType("ushort", sizeof(ushort), ushort.MinValue, ushort.MaxValue);
            PrintDataType("int", sizeof(int), int.MinValue, int.MaxValue);
            PrintDataType("uint", sizeof(uint), uint.MinValue, uint.MaxValue);
            PrintDataType("long", sizeof(long), long.MinValue, long.MaxValue);
            PrintDataType("ulong", sizeof(ulong), ulong.MinValue, ulong.MaxValue);
            PrintDataType("float", sizeof(float), float.MinValue, float.MaxValue);
            PrintDataType("double", sizeof(double), double.MinValue, double.MaxValue);
            PrintDataType("decimal", sizeof(decimal), decimal.MinValue, decimal.MaxValue);


        }


         
    }
}
